$(function(){
   banner();
   index_case();
   company();
})



//轮播//
function banner(){
   var swiper = new Swiper('.banner', {
      slidesPerView: 1,
      loop: true,
      autoplay:true,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
    });

}


function index_case(){
  var swiper = new Swiper('.case_box', {
    slidesPerView: 3,
    loop: true,
    spaceBetween: 30,
    navigation: {
      nextEl: '.swiper-button-nexta',
      prevEl: '.swiper-button-preva',
    },
  });
}

function company(){
  $('.company_title li').click(function () {
    $(this).addClass('active').siblings().removeClass('active');
    $('.content').eq($(this).index()).show().siblings('.content').hide();
});
}